package cn.controller.product;

import cn.service.productService.ProductServiceImpl.SkuServiceImpl;
import entity.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 朱颢阳
 * @description
 * @time 2024/8/26 14:50
 */
@RestController
@CrossOrigin
@RequestMapping("/product")
public class SkuController {
    @Autowired
    SkuServiceImpl service;
    @RequestMapping("/updatesku")
    public Result updatesku(@RequestBody String jsonObject){
        return service.updatesku(jsonObject);
    }
    @RequestMapping("/getsku")
    public Result getsku(Integer id){
        return service.getsku(id);
    }
    @RequestMapping("/find")
    public Result find(Integer sku_code){
        return service.find(sku_code);
    }
}
